package fi.aalto.cse.T110_5150.P2PClient;

public class QueryInfo {
	private int messageId;
	private ByteArray key;
	private long time;
	private RemotePeer sender;
	
	public QueryInfo(int messageId, ByteArray key, RemotePeer sender) {
		this.messageId = messageId;
		this.key = key;
		this.sender = sender;
		this.time = System.currentTimeMillis();
	}
	
	public int getMessageId() {
		return messageId;
	}
	
	public ByteArray getKey() {
		return key;
	}
	
	public long getTime() {
		return time;
	}
	
	public RemotePeer getSender() {
		return sender;
	}
	
}
